const rules = {
  name: [
    { required: true, message: '没有输入账号', trigger: 'blur' },
    {
      pattern: /^[a-z0-9]{5,10}$/,
      message: '用户名必须是5-10个字母或者数字',
      trigger: 'blur',
    },
  ],
  password: [
    { required: true, message: '没有输入密码', trigger: 'blur' },
    {
      pattern: /^[a-z0-9]{3,11}$/,
      message: '密码必须是三位以上',
      trigger: 'blur',
    },
  ],
}
export { rules }
